SCM_LIB_DIR = ./scripts/lib
SCM_LIB = \
	$(SCM_LIB_DIR)/main.scm

SCHEME_DIR = ./ammunerve/scm

JAVA_LIBRARIES = \
    scripting-console/console.jar \

JAVA_CLASSPATH = \
	".$(SEP)scripting-console/console.jar$(SEP)lib/gdata-base-1.0.jar$(SEP)lib/gdata-contacts-3.0.jar$(SEP)lib/gdata-contacts-meta-3.0.jar"

scripting-console/console.jar:
	cd scripting-console && make

console-app.jar: scripting-console/console.jar s-manifest $(JAVA_LIBRARIES) $(SCM_LIB)
	java -cp $(JAVA_CLASSPATH) kawa.repl --no-warn-invoke-unknown-method --main -P ammunerve.scm. -C scripts/lib/main.scm
	jar cfm console-app.jar s-manifest \
		scripting-console/console.jar \
		$(SCHEME_DIR)/*.class

